<div class="box">
    <div class="box-header">
        <div class="box-name">
            <i class="fa fa-table"></i>
            <span>下级代理业绩</span>
        </div>
        <div class="box-icons">
            <a class="collapse-link">
                <i class="fa fa-chevron-up"></i>
            </a>
            <a class="expand-link">
                <i class="fa fa-expand"></i>
            </a>
            <a class="close-link">
                <i class="fa fa-times"></i>
            </a>
        </div>
        <div class="no-move"></div>
    </div>
    <div class="box-content no-padding">
        <table class="table table-striped table-bordered table-hover table-heading no-border-bottom">
            <thead>
            <tr>
                <th>代理ID</th>
                <th>代理姓名</th>
                <th>下级代理ID</th>
                <th>下级代理姓名</th>
                <th>下级代理充值金额</th>
                <th>分成比例</th>
                <th>获得返利金额</th>
            </tr>
            </thead>
            <tbody>
            <{foreach from=$data item=parent}>
            <{foreach from=$parent['child'] item=child}>
            <tr>
                <td><{$parent['id']}></td>
                <td><{$parent['realName']}></td>
                <td><{$child['id']}></td>
                <td><{$child['realName']}></td>
                <td><{$child['rechargeMoney']}></td>
                <td><{$child['rate']}></td>
                <td><{$child['benefit']}></td>
            </tr>
            <{/foreach}>

            <{/foreach}>
            </tbody>
        </table>
    </div>
</div>